Edit Task: Assignments
Format
SCHED / EditTask '<TaskName>' Assignments <Optional ShrinkToTimeslot> <# of Assignments> <Assignment1StartTime> <Assignment1StopTime> '<Assignment1PossibilityName>' ... <AssignmentNStartTime> <AssignmentNStopTime> '<AssignmentNPossibilityName>'
Description
The Assignments attribute under EditTask defines the assignments for the given task. Sending this command will delete all previous assignments
Parameters
| Parameter | Description | 
|---|---|
| Optional ShrinkToTimeslot | An optional parameter, use ShrinkToTimeslot to automatically increase the assignment start times and decrease the assignment stop times so that they do not overrun timeslot boundaries. | 
| # of Assignments | An integer value indicating the number of assignment definitions contained within this command. | 
| Start/Stop | The format is YYYY/MM/DD_HH:MM:SS or YYYY/MM/DD_HH:MM:SS.fff. | 
| AssignmentPossibilityName | A string of text in single quotes of a comma delimited list of the resource names in the possibility. Order is not required and resource names should be in single quotes. | 
| AssignmentLocked | An optional parameter, use AssignmentLocked followed by a boolean to override the algorithm and prevent the particular assignment from being modified automatically | 
Examples
Make TaskA use the possibility with ResA and ResB from 12:15:00 12:30:00 on 2017/07/31, and set it so it won't be modified the next time an algorithm is run
SCHED / EditTask 'TaskA' Assignments 1 2017/07/31_12:15:00 2017/07/31_12:30:00 'ResA,ResB' AssignmentLocked True
Make TaskB use the possibility with ResC from 11:10:00 11:30:00 on 2020/01/12, potentially modifying the times to fit within a timeslot
SCHED / EditTask 'TaskB' Assignments ShrinkToTimeslot 1 2020/01/12_11:10:00 2020/01/12_11:30:00 'ResC'
